/**
 * Project Name:emm-poss
 * File Name:SpringBootStartApplication.java
 * Package Name:com.emm.yixun.poss
 * Date:2017年6月29日下午4:07:45
 * Copyright (c) 2017, www.yixun.com All Rights Reserved.
 *
*/

package com.emm.yixun.poss;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

/**
 * ClassName:SpringBootStartApplication <br/>
 * Function: tomcat容器来启动Spring上下文 <br/>
 * Date:     2017年6月29日 下午4:07:45 <br/>
 * @author   Administrator
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public class SpringBootStartApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 注意这里要指向原先用main方法执行的Application启动类
        return builder.sources(Application.class);
    }
}

